package com.vma.tools;


import org.apache.commons.httpclient.HttpStatus;

/**
 * 业务层异常
 * 
 * @author tangcc
 * @date 2016年3月14日
 */
public class AppException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String errorCode;

	public AppException(String errorCode, String errorMsg) {
		super(errorMsg);
		this.errorCode = errorCode;
//		this.httpStatus = HttpStatus.SC_INTERNAL_SERVER_ERROR;
	}


	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}



	@Override
	public String toString() {
		return "errorCode: " + getErrorCode() + ", errorMsg: " + getMessage();
	}
}
